The solid magnesium (anode) loses electrons to create magnesium ions, which then join the solution of magnesium sulfate. The electrons travel through a wire to the cathode (Pb) and into the lead sulfate solution, where the lead ions are reduced to solid lead. The charge is redistributed by ion movement through the salt bridge.